package com.java.zhuiyun.api.advertising_revenue.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName AdvertisingRevenue
 * @Description TODO 广告收益表
 * @Author WX
 * @Date 2023/9/18 9:32
 **/
@Data
public class AdvertisingRevenue {

    private static final long serialVersionUID = 1L;
    /**
     * 广告收益表主键id王旭
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    /**
     * 单个广告价格
     */
    private Double advertisingPrice;
    /**
     * 观看时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss" )//DateTimeFormat 是入参格式化；
    private Date viewingtime;
}
